﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLNS.Class;

namespace QLNS.NghiepVu
{
    public partial class frmQuaTrinhCongTac : Form
    {
        public frmQuaTrinhCongTac()
        {
            InitializeComponent();
        }

        DB Cn = new DB();

        private void load_dtgNhanVien()
        {
            if (Cn.KetNoi())
            {
                DataTable tbl = Cn.getTable("select row_number() over(order by MaNV) as STT, MaNV, TenNV from tbl_NhanVien");
                dtgNhanVien.DataSource = tbl;
            }
        }

        private void frmQuaTrinhCongTac_Load(object sender, EventArgs e)
        {
            try
            {
                if (Cn.KetNoi())
                {
                    
                }
            }
            catch
            {
            }

        }
    }
}
